package part16_备忘录模式_游戏角色恢复.p02_游戏角色恢复状态;

/**备忘录对象，负责保存好记录，就是Originator内部状态
 * @ClassName: Memento
 * @Author: AllenSun
 * @Date: 2020/3/8 23:15
 */
public class Memento {
    //攻击力
    private int vit;
    //防御力
    private int def;

    public Memento(int vit, int def) {
        this.vit = vit;
        this.def = def;
    }

    public int getVit() {
        return vit;
    }

    public void setVit(int vit) {
        this.vit = vit;
    }

    public int getDef() {
        return def;
    }

    public void setDef(int def) {
        this.def = def;
    }
}
